import {reactive} from 'vue';
import {SnakeStyle} from '../types/index'


// export default () =>{
  const StyleObj:SnakeStyle = reactive({
    left: 100,
    top: 150 
  })
  
  function food(){
    StyleObj.left = Math.round(Math.random()*50)*10;
    StyleObj.top =  Math.round(Math.random()*39)*10;
  }
  // setInterval(()=>{
  //   food()
  //   console.log(111);
    
  // },1000)

  export{
    StyleObj,
    food
  }